treeview: Use equal areas in the computation of drag dest row positions
authorFederico Mena Quintero <federico@gnome.org>
Fri, 19 Apr 2013 22:20:12 +0000 (17:20 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Fri, 19 Apr 2013 22:24:03 +0000 (17:24 -0500)
commit2db8e25cdb2aab8de12e88b9532f322c2fb56416
tree3f77c9b8a5ed3869debaa62b93e1ff88ee56f56b
parenta1b9bf7fbc9da6b162327c59ee2d347f1b16a033
treeview: Use equal areas in the computation of drag dest row positions

We used to divide the row in thirds vertically, and use the outer thirds for GTK_TREE_VIEW_DROP_BEFORE and AFTER, respectively.

Now we use *fourths*.  This is so that we get equal areas for these:

  GTK_TREE_VIEW_DROP_BEFORE
  GTK_TREE_VIEW_DROP_INTO_OR_BEFORE
  GTK_TREE_VIEW_DROP_INTO_OR_AFTER
  GTK_TREE_VIEW_DROP_AFTER

This makes hovering tree rows much more positive.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtktreeview.c